package com.cr.sync.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 远程数据-巡查任务对象 tb_sync_supervise_check_task
 * 
 * @author tang
 * @date 2025-08-29
 */
public class TbSyncSuperviseCheckTask implements Serializable {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 被巡察对象 */
    private String patrolObjects;

    /** 主体名称 */
    private String bodyName;

    /** 巡查人员 */
    private String checkEmployeeNames;

    /** 任务状态（1草稿2发布3已完成4超时5超时完成） */
    private String taskStatus;

    /** 巡查时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date reportTime;

    /** 巡查任务结果（0合格1不合格2需整改） */
    private String taskResult;

    /** 所属监管机构名称 */
    private String regulatoryAuthorityName;

    /** 检查明细 */
    private List<TbSyncSuperviseCheckTaskDetail> checkResultDetail;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public void setPatrolObjects(String patrolObjects) 
    {
        this.patrolObjects = patrolObjects;
    }

    public String getPatrolObjects() 
    {
        return patrolObjects;
    }

    public void setBodyName(String bodyName) 
    {
        this.bodyName = bodyName;
    }

    public String getBodyName() 
    {
        return bodyName;
    }

    public void setCheckEmployeeNames(String checkEmployeeNames) 
    {
        this.checkEmployeeNames = checkEmployeeNames;
    }

    public String getCheckEmployeeNames() 
    {
        return checkEmployeeNames;
    }

    public void setTaskStatus(String taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() 
    {
        return taskStatus;
    }

    public void setReportTime(Date reportTime) 
    {
        this.reportTime = reportTime;
    }

    public Date getReportTime() 
    {
        return reportTime;
    }

    public void setTaskResult(String taskResult) 
    {
        this.taskResult = taskResult;
    }

    public String getTaskResult() 
    {
        return taskResult;
    }

    public void setRegulatoryAuthorityName(String regulatoryAuthorityName) 
    {
        this.regulatoryAuthorityName = regulatoryAuthorityName;
    }

    public String getRegulatoryAuthorityName() 
    {
        return regulatoryAuthorityName;
    }

    public List<TbSyncSuperviseCheckTaskDetail> getCheckResultDetail()
    {
        return checkResultDetail;
    }

    public void setCheckResultDetail(List<TbSyncSuperviseCheckTaskDetail> checkResultDetail) {
        this.checkResultDetail = checkResultDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("patrolObjects", getPatrolObjects())
            .append("bodyName", getBodyName())
            .append("checkEmployeeNames", getCheckEmployeeNames())
            .append("taskStatus", getTaskStatus())
            .append("reportTime", getReportTime())
            .append("taskResult", getTaskResult())
            .append("regulatoryAuthorityName", getRegulatoryAuthorityName())
            .toString();
    }
}
